Xbasic

BLOB.PEEK Function

Syntax

Byte_Value as N = peek(N position)

Arguments

position

The position of the byte to return.

Description

Get the value of a byte from the blob.

Discussion

The .PEEK() method returns the value of a byte (8 bit) value at a Position in a blob. The first position is 1. This function returns a -1 if the Position is past the end.

Example

dim bb as B
bb = "Alpha"
? bb.peek(2)
= 108.000000

See Also